<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/Style.css"/>
    <link type="text/css" href="__PUBLIC__/css/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
    <link href="__PUBLIC__/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/libs/skins/blue/style.css" rel="stylesheet" type="text/css" id="theme" themeColor="blue"/>
    <script type="text/javascript" src="__PUBLIC__/libs/js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/libs/js/bsFormat.js"></script>
    <script type="text/javascript" src="__PUBLIC__/libs/js/framework.js"></script>
    <script type="text/javascript" >

    function AddChildCategory(id)
    {
    	 top.Dialog.open({URL:"__APP__/News/addCategory/pid/"+id,Title:"添加子分类",Width:850,Height:300});
    }
    function editCategory(id)
    {
    	 top.Dialog.open({URL:"__APP__/News/editCategory/id/"+id,Title:"编辑分类",Width:850,Height:300});
    }
    </script>
</head>
<body>
<form method="post" action="{:U('pagesizesave')}" id="form">
    <input type="hidden" id="pagesize" name="pagesize"/>
</form>
<ul class="tools">
    <LI class=add p="50" style="cursor:pointer;">
    <SPAN>
        <A onclick='top.Dialog.open({URL:"__APP__/News/addCategory/",Title:"添加分类 ",Width:500,Height:300});'">新增新闻分类</A>
    </SPAN>
    </LI>
</ul>

<div class="mainBox">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="data_list">
        <tr>
            <th width="60%">分类名称</th>
            <th width="40%">操作</th>
        </tr>
        <volist name="list" id="vo">
            <tr id="{$vo['cid']}">
                <td>{$vo['name']}</td>
                <td>
                     <a onclick="editCategory({$vo['cid']})" >编辑</a>
                    /<a href="__APP__/News/DeleteCategory/cid/{$vo['cid']}">删除</a>
                    /<a onclick="AddChildCategory({$vo['cid']})" class="AddChildCategory" >添加子类</a>
                </td>
            </tr>
        </volist>
    </table>
</div>
</body>
</html>